export function temColumns() {
  return [
    {
      title: this.$t("module.importExport.templateCode"),
      key: "templateCode"
    },
    {
      title: this.$t("module.importExport.templateName"),
      key: "templateName"
    },
    {
      title: this.$t("module.importExport.checkService"),
      key: "checkService"
    },
    {
      title: this.$t("module.importExport.importService"),
      key: "importService"
    },
    {
      title: this.$t("module.importExport.createUserName"),
      key: "createUserName"
    },
    {
      title: this.$t("common.operating"),
      align: "left",
      fixed: "right",
      width: 80,
      render: (h, { row }) => {
        return h("RowTools", {
          props: {
            data: [
              {
                type: "icon",
                icon: "md-create",
                text: this.$t("common.edit"),
                handle: () => this.addTemplate(row, 1)
              },
              {
                type: "icon",
                icon: "md-trash",
                text: this.$t("common.delete"),
                handle: () => this.deleteHandler(row.id)
              }
            ]
          }
        });
      }
    }
  ];
}
